package com.linx.notice.domain.bo;

import com.linx.notice.domain.InfoScope;
import com.linx.common.core.validate.AddGroup;
import com.linx.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;

import java.util.List;

/**
 * 信息发布—发送范围管理业务对象 info_scope
 *
 * @author 泽智科技
 * @date 2024-10-21
 */
@Data
@AutoMapper(target = InfoScope.class, reverseConvertGenerate = false)
public class InfoScopeBo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long infoScopeId;

    /**
     * 范围名称
     */
    @NotBlank(message = "范围名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String scopeName;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 用户ID集合
     */
    private List<Long> userIds;
}
